Hollis Blanchard [Tue, 12 Dec 2006 15:56:06 +0000 (09:56 -0600)]
[POWERPC] Merge in outstanding changes from xenppc-unstable.hg.
It's a long story, but basically a small divergence in xenppc-unstable meant a
large number of changesets couldn't be directly imported to xen-unstable, so
this changeset includes all of them.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Sat, 2 Dec 2006 00:11:02 +0000 (19:11 -0500)]
[XEN][POWERPC] should comment the Power Managment workaround in the code as well
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 29 Nov 2006 00:01:46 +0000 (19:01 -0500)]
[XEN][POWERPC] cleanup hard tabs
allowed in some files in order to track linux lineage
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 28 Nov 2006 23:46:13 +0000 (18:46 -0500)]
[XEN][POWERPC] Fix IPI stall timeout without using timebase_freq
When using the register dump feature of Xen, one will sometimes see a
message about an IPI finish stall. This is because of an int to long
comparison bug, so fix it by doing proper nanosecond based time
accounting with no explicit reference to timebase_freq.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : .%90%9Do%2A%B7g%FEW%23%A9%7E/T%13%F8v%16r%96
Jimi Xenidis [Tue, 28 Nov 2006 22:01:00 +0000 (17:01 -0500)]
[XEN][POWERPC] Do not override smp function call wait flag
Do not override the caller's wishes regarding waiting for smp function
call completion. I was being too conservative in this respect: the lock
protects the call_data structure, and the function called is expected to
be threadsafe.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %E0%1E%08%CAb%9BO%15H%28%B0%97jX%DF%87gU%8A%EC
Jimi Xenidis [Tue, 28 Nov 2006 21:56:40 +0000 (16:56 -0500)]
[XEN][POWERPC] Generalized parallel IPI handlers
Our problem with x86 do_IRQ is that it does not respect IRQ_PER_CPU, so
make our logic reflect that generically. We remove the spin lock in
this case, since the programming convention is to update irq descs
atomically (if at all). This patch allows read_clocks to work properly.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %1E%1Ac%40%81%29%BE%A2%D8%7FH%5CR%F1%BE%21%AD%A3_%F0
Jimi Xenidis [Tue, 28 Nov 2006 21:43:53 +0000 (16:43 -0500)]
[XEN][POWERPC] secondary_cpu_init() does not return.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %A2%A4%A6%BD%C5%CD%ED%F3%FE%90bm%E9%B1l%9E%E8%98%F1x
Jimi Xenidis [Tue, 28 Nov 2006 15:33:53 +0000 (10:33 -0500)]
[POWERPC][XEN] cpu_relax() needs to call barrier()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %A8%E6z%19%C3%25Zk%BC%0A%AA%5C%9E%176%F1%DD%D7ol
Jimi Xenidis [Mon, 27 Nov 2006 22:17:07 +0000 (17:17 -0500)]
[XEN][POWERPC] OFD dump prefix screen and hook into keyhandler
This patch adds the ability to view the devtree from the Xen console.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %CCE%28-%AF%3D%24/%DC%F6%E8X%C0%B1%8B%7F%10%86%A3%18
Jimi Xenidis [Mon, 27 Nov 2006 21:14:07 +0000 (16:14 -0500)]
[TOOLS][POWERPC] update prose builder to define the mem_mb arg.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %02%AA%AF%00%A9%22%9Bed%E8%60a%8F2%9B%D2%F90%3A%1E
Jimi Xenidis [Wed, 22 Nov 2006 21:29:25 +0000 (16:29 -0500)]
[XEN][POWERPC] fix some hard tabs that snuck by
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : 0WQ%A5%28%1E%12Szd%85%D7J%C9%F5%3As%EE%88%16
Jimi Xenidis [Wed, 22 Nov 2006 21:09:28 +0000 (16:09 -0500)]
[XEN][POWERPC] Fix Register dumping from ^A^A^A console
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %17p%07aXH%AADK%0C%CBOXF%BAt%E6z%C0%03
Jimi Xenidis [Wed, 22 Nov 2006 19:53:13 +0000 (14:53 -0500)]
[XEN][POWERPC] SMP/IPI/MB combined
This patch rolls up and rebases the following patches for submission
against current tip of tree:
* Memory barrier after SP store
* IPI support
* SMP support
The only changes from the previous submission other than trivial
fast-forward merges are to remove the ERAT flush, since it was comitted
seperately, and to make the status messages about waiting for remote
function completion ACKs only kick in after a full second has passed.
Note that this path REQUIRES that some form of the dom0 Linux patch
titled "Make Linux bail out of IPI vector reset" be applied.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 22 Nov 2006 19:35:09 +0000 (14:35 -0500)]
[XEN][POWERPC] Early boot memory avoidance improvemnts
This patch add a simple memory allocator that can be used to:
- repect our loaded image
- repect firmware suggestions on "availble" memory
- avoid memory we know to have issues with various different FW
Also cleans up a lot of the previous logic and no longer updates the
multipboot memory map since that is no longer used anyway.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %CE%8C%1E%26%B2%AE%BDd%C8%A2%F0.%20%EDF%D5%87%F4%28p
Hollis Blanchard [Tue, 21 Nov 2006 21:25:02 +0000 (15:25 -0600)]
[POWERPC][XEN] Ignore device tree nodes missing "device_type".
The latest release of SLOF is missing mandatory "device_type" properties for
the ISA and system-controller busses. Work around it by just printing a warning
and continuing.
CC: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : y%01Ue%D3H%7B%1CL%0DLc%02P%D6%85%AC%E8%1F%07
Jimi Xenidis [Sat, 11 Nov 2006 17:04:45 +0000 (12:04 -0500)]
[XEN][POWERPC] Flush the ERAT very early on secondary processors.
This patch solves the problem with the "Synchronizing timebase hang"
that both SMP and "nosmp" users have experienced. It blows away the
ERAT but performing an SLBIA in the seconadry processor "spinup" code.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : 8%17%C8L%B7%E8%16GW%80B%D3%E7%25%94%1E%E5%F2LQ
Jimi Xenidis [Sat, 11 Nov 2006 15:30:07 +0000 (10:30 -0500)]
[XEN][POWERPC] Turn off the Guard bit for access to the grant table
Soon, we will not have domains map this page like IO, but for the near
term lets undo all the IO-type PTE bits.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : E%89%B3%DE%C1%FD%87P%96%85%84q%AEI%3Cp%8EpI%A3
Jimi Xenidis [Fri, 10 Nov 2006 23:41:25 +0000 (18:41 -0500)]
[TOOLS][POWERPC] Add missing prototype
This gets rid of a warning on some GCC versions
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : j%9A%E4%9A%3B%FE%5E%2B%F2%FC%FF%3A%17%9A%1CU%83%86%3D%F1
Hollis Blanchard [Fri, 1 Dec 2006 22:57:03 +0000 (16:57 -0600)]
[POWERPC][XEN] support for recursive spinlocks
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Fri, 10 Nov 2006 22:45:25 +0000 (16:45 -0600)]
[POWERPC][XEN] Rename "Mambo" to "systemsim".
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
rename : xen/arch/powerpc/mambo.S => xen/arch/powerpc/systemsim.S
extra : transplant_source : %8EB%A0%A4%0C%21%19%3E%A2%B6j%60%2B%1F%D5%19%D2%7F%BC%3D
Jimi Xenidis [Fri, 3 Nov 2006 21:53:17 +0000 (16:53 -0500)]
[XEN][POWERPC] The VIO rewrite
Once you figure it all out, its time to do a rewrite, lots of code I
thougth I needed is now removed and less PPC specific code now exists.
This patch uses the MEMORY_HOTPLUG system to add a region to the
Kernel Linear Mapping that will be used exclusively to map in
Granted/Foreign pages. This creates "struct page" objects in Linux
which are necessary to perform VIO operations. When one of these
pages are grant_mapped the pfn2mfn() translation in Xen is updated to
reflect the association and the subsequent H_ENTER() from the domain
will contain the correct mapping.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 24 Oct 2006 23:11:00 +0000 (19:11 -0400)]
[TOOLS][POWERPC]fixes to put back commandline in prose builder
The following patch puts back a couple of lines of code which
copies the specified command line to the start info structure.
Must have gotten lost in prior merges.
Signed-off-by: Jonathan Appavoo <jappavoo@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %91H%F7%81m%00%BCE%A8yZQ%19%DB%99I%89J%3F%89
Jimi Xenidis [Wed, 18 Oct 2006 15:29:57 +0000 (11:29 -0400)]
[TOOLS][POWERPC] oops, forgot load_elf_kernel()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %EC%E7%03%7Cr%C6%B7%94N%DE%22a%EC%1F%E9%9C%14%89%CF%F4
Jimi Xenidis [Wed, 18 Oct 2006 13:01:37 +0000 (09:01 -0400)]
[TOOLS][POWERPC] Use a smaller page array and place common code in utils.c
Since all the bits must be loaded into the RMA there is no need to get
the entire page array, just those pages in the RMA.
We also place common functions in utils.c
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 18 Oct 2006 10:50:35 +0000 (06:50 -0400)]
[TOOLS][POWERPC] apply start_info changes to xc_prose_build.c
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %D4%08%FC%F1%97ZCY%3Dtk%2A%CB%E8%40%DB%FF%D9%11%B8
Jimi Xenidis [Wed, 18 Oct 2006 10:43:33 +0000 (06:43 -0400)]
[TOOLS][POWERPC] Add Prose Domain Builder
The following patch addes a Prose domain builder. For the moment it
is a clone of the linux ppc64 builder but will diverge quickly.
Signed-off-by: Jonathan Appavoo <jappavoo@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 18 Oct 2006 10:24:57 +0000 (06:24 -0400)]
[TOOLS][POWERPC] Fix build breakage in powerpc64/xc_linux_build.c
The patch "[SOLARIS] Don't build ptrace code on Solaris." from
xen-unstable now causes siginfo.h to be included which
#defines "si_addr" to "_sifields._sigfault.si_addr".
and breaks the build of powerpc64/xc_linux_build.c.
This patch renames
si_addr -> start_info_addr
si -> start_info (for consistency)
and
start_info -> si (in load_devtree beuse of the renaming above)
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Thu, 12 Oct 2006 23:22:26 +0000 (18:22 -0500)]
[POWERPC][XEN] Improve presentation of objcopy output.
This makes it easier to grep log files, and just looks a lot better in
the console output of a make.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %F6%7E%FB%F6%DF%A9%DC%8C%CE%BF%85%95n%F9%C5%BC%5CY%28%CC
jimix@localhost.localdomain [Thu, 12 Oct 2006 21:09:19 +0000 (17:09 -0400)]
[XEN][POWERPC] Support your older compilers
gcc 3.3.x doesn't like some instructions we are using so lets dum them
down a bit.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %93r5%3E%3B%09%5C%FA%F8-%09%C8%B8%91%D9%A2%B5%8C%A75
Jimi Xenidis [Tue, 10 Oct 2006 13:11:32 +0000 (09:11 -0400)]
[XEN][POWERPC] New interface ATTN() to conact the HW probe
Sometimes it is useful to have your code contact the HW probe directly
rather than call BUG().
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %05%C8%CE%1Di%7C%D7%D1j%DB%FBpf%80%AD%FB%95%D4I%0F
Jimi Xenidis [Tue, 10 Oct 2006 13:09:38 +0000 (09:09 -0400)]
[XEN][POWERPC] Remove pfn2mfn() now that it is understood
It is possible (thank you xm-test) to initiate a grant copy to a page
belonging to a dying domain, the page end up being owned by nobody
which is what the original test asserted.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : z%F3cm%A4%B9U%E5V%AF%19%AF%91%B063%B5e%CC%E2
Jimi Xenidis [Sun, 8 Oct 2006 15:34:24 +0000 (11:34 -0400)]
[XEN][POWERPC] Create a Domain Foreign Map space
The following patch creates a Domain Foreign Map space that is uses to
map granted memory into the Linear Map of the domain. The Linear Map
of Linux is the is the Kernel Virtual address space where VA = PA +
PAGE_OFFSET.
Also:
- lots of grant_* interfaces work now
- mm.[ch] cleanups
- first pass at extracting Page Table operations from PAPR interfaces
- get_page_type() fix logic bug
- recognize a grant table mapping by placing its gmfn at the end of
real memory.
- grant table usually mapped like an IO page, so force WIMG bits I=0
- mfn_to_gmfn and pfn2mfn get WAY to complex, need get a simpler model in.
- communicate the Domain Foreign Map to domains using /xen/foreign-map
- make sure all bit definitions are UL where possible
- now that we actually assign Xen heap pages to domains they must be
relinquished
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Sat, 7 Oct 2006 20:25:46 +0000 (16:25 -0400)]
[POWERPC][XEN] implement the UP side of __flush_tlb_mask()
The SMP side will need to be done soone enough
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %E3%03v%A0%AB%C3%91%17%F6%04%B0%F6%CCx%17%DE%B3%EB%90y
Jimi Xenidis [Sat, 7 Oct 2006 19:38:27 +0000 (15:38 -0400)]
[POWERPC][XEN] Alloc IOMMU to map a Foreign page
VIO to a physical device reulsts in the granted page getting mapped
into the IOMMU.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %AE%BE%E0%04%E5%17%FB9%1C%13Et%9Cq%A2%28a%EC%25M
Jimi Xenidis [Wed, 4 Oct 2006 18:06:14 +0000 (14:06 -0400)]
[XEN][POWERPC] Keepin it cool: sleep the processor when halt fails
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : p%1Ch%92%1F%F3%23p%CA%EA%AA%C1z%5E%0A%25%EB%C8%A8%3A
Hollis Blanchard [Fri, 6 Oct 2006 17:15:06 +0000 (12:15 -0500)]
[POWERPC][XEN] Fix yaboot loading and other linker script tweaks.
yaboot refuses to load segments at file offset 0, so move the ELF headers out
of our text segment. Also hardcode the link address in the linker script, and
remove the now-inaccurate start/end comments.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %A4%1B%8C%D0%1A%D2%87%D6%0A%5EY%CC%FF%A2%3B%5D%D8%83z%F8
Hollis Blanchard [Thu, 5 Oct 2006 21:06:42 +0000 (16:06 -0500)]
[POWERPC][XEN] Escape dots in .hgignore.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %F9c%1D%8C%3E%3C8%CDa%80%03H%7E%5B%D2%1BJ%0A%CB%5D
Hollis Blanchard [Thu, 5 Oct 2006 21:06:05 +0000 (16:06 -0500)]
[POWERPC][XEN] Fix up 'clean' target.
Signed-off-by: Maria Butrico <butrico@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %07%E0B%1F%96%11%1C%1B%1C%18%8F5%10T%E5%A9%EE%13%9A%99
Hollis Blanchard [Thu, 5 Oct 2006 20:48:26 +0000 (15:48 -0500)]
[POWERPC][XEN] Builtin cmdline dependency rule
Rebuild cmdline.o when the user changes the CMDLINE=X argument passed to
the make invocation. I couldn't find an example of another project that
handles this case properly, so I came up with this.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %1D0%5E%9CslQ%E7E%CC%8FS%B8%E1%E5%C5i%ED%F1%BE
Hollis Blanchard [Wed, 4 Oct 2006 22:27:16 +0000 (17:27 -0500)]
[POWERPC][XEN] Hide builtin dom0 args from Xen.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %1Bu%9B%25%22%CD%F0%93T%DC%A6%D8%FD%E2%7C%BDk%03%BA%B9
Hollis Blanchard [Wed, 4 Oct 2006 22:22:59 +0000 (17:22 -0500)]
[POWERPC][XEN] Create a cmdline.c to hold builtin/post-installed parameters.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %80%27K%ED%86%CA%17I%FE%29%E2%21G%CB%C7%C4%95%22%271
Hollis Blanchard [Wed, 4 Oct 2006 22:17:41 +0000 (17:17 -0500)]
[POWERPC][XEN] Remove boot wrapper, and extensive Makefile simplifications.
Instead of embedding the 64-bit Xen image inside a 32-bit "boot wrapper", we
can just use objcopy. This combines boot32.S and start.S, and removes the boot/
subdirectory entirely.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
rename : xen/arch/powerpc/boot/start.S => xen/arch/powerpc/start.S
extra : transplant_source : %85P%AE%9D%12bgc5zR%A1%AA%0Fh%2A%2A%82%B2%90
Hollis Blanchard [Tue, 3 Oct 2006 23:23:21 +0000 (18:23 -0500)]
[POWERPC][XEN] Move gmfn_to_mfn() from page.h to mm.h to avoid recursive header dependencies.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 3 Oct 2006 01:43:09 +0000 (21:43 -0400)]
[XEN][POWERPC] An OK spot to flush the I-Cache
Its not the best, but it will do for now.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %D1%F6%D0%F8%20%D8%90%AC%60u%F4z%D1%BAn8%01%21g%B4
Jimi Xenidis [Tue, 3 Oct 2006 01:40:26 +0000 (21:40 -0400)]
[XEN][POWERPC] Use gmfn_to_mfn() over pfn2mfn()
Should only use pfn2mfn() if you care about the type of memory.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Mon, 2 Oct 2006 23:55:18 +0000 (19:55 -0400)]
[XEN][POWERPC] Fixes in cpu_flush_icache()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %D1%13%8Bq%A5%097P%3An%C5%80%0D%7E%8FO%D8%B0b%E6
Jimi Xenidis [Mon, 2 Oct 2006 15:07:54 +0000 (11:07 -0400)]
[XEN][POWERPC] Add Function to completely flush the I-Cache for a processor
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %02%F6%E7u%DE%B1%F6%AA%21%15N%E47%125%1A8%96%81%AF
Jimi Xenidis [Mon, 2 Oct 2006 15:06:10 +0000 (11:06 -0400)]
[XEN][POWERPC] Flush all of text per CPU in case the loader did not
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %85%C4%82%F3%0A%0A%B7%E9%D8s%031%E7%7C%9E%20-%8E%A6%B1
Jimi Xenidis [Mon, 2 Oct 2006 15:04:00 +0000 (11:04 -0400)]
[XEN][POWERPC] go ultra conservative on CI IO routines
The following patch contains:
- Code that uses SLBIE for ERAT flush rather than TLBIE. Erratum #16
says to use SLBIE bit a TLBIE should do it and is "less
distruptive".
- Machine Check issues
- Track CI mode while cache is still enabled
- Use r7 to indicate that the IO is still pending while CI is on
- The right sync for the right reasons
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %27m9%82%2A%21%DA%13%DD%DD%8B%C4%091a%05%D2%FA88
Jimi Xenidis [Mon, 2 Oct 2006 00:40:44 +0000 (20:40 -0400)]
[XEN][POWERPC] oops on debug build break
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : w74%97%91o%9E%24%93%9B%F4%D9T%9B%A7%C6%7C%02%C7%3F
Jimi Xenidis [Sun, 1 Oct 2006 12:38:38 +0000 (08:38 -0400)]
[XEN][POWERPC] Improve the debugging strategy of these hcalls.
This patch cleans up all the variaus printk()s.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 29 Sep 2006 18:31:05 +0000 (14:31 -0400)]
[XEN][POWERPC] Allocate Xen memory area based on the amount of memory
This will make sure that there is enough memory for large HTABs, as well as:
- enables "xenheap_megabytes=" cmdline option
- consistently reports on memory system
- reduces noise in memory.c
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %C7%FA%7CA%B9%E6%0C%DD%DD%F9%0F%ED%DE%A8%C1_%01_Ck
Jimi Xenidis [Fri, 29 Sep 2006 15:29:32 +0000 (11:29 -0400)]
[XEN][POWERPC] shadowed paramter in prototype, SHEESH!
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %DB%FB_%C0%B9%B2%CC%C2%F4%81q%0D%A8%CFA%9D%91%AE%40%D6
Jimi Xenidis [Fri, 29 Sep 2006 13:53:39 +0000 (09:53 -0400)]
[XEN][POWERPC] Conistence with log vs. order
We use "log" for a log2 value, "order" is the log2 of page size, so:
order = log - PAGE_SHIFT
It is confusing, but more so if we are not consistent.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %3B%F1hO%03.%BF%5C%CA%BD%A8%F0%A7%CC%10upa%B0%BF
Jimi Xenidis [Fri, 29 Sep 2006 02:31:23 +0000 (22:31 -0400)]
[XEN][POWERPC] Remove limit on the page frame table
Dunno where the limit came from, but it is the reason we were
asserting in the page allocator.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : .%21%9F%06%F9%A4%07%D12H%EAz8%93s%A20%28%C4%26
Jimi Xenidis [Thu, 28 Sep 2006 16:34:01 +0000 (12:34 -0400)]
[XEN][POWERPC] Allow Xen to use RTAS if available
If FW provides an RTAS layer, it will be instantiated and Xen will try
to use it for power control (halt, reboot, power-off, etc). Xen will
also communicate to Dom0 (using /xen/power-control in the devtree)
when Xen cannot control power and it is hoped that the domain can,
especially useful for Maple boards running non-RTAS versions of PIBS.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 26 Sep 2006 18:01:11 +0000 (14:01 -0400)]
[XEN][POWERPC] U4 DART workaround for functionality
This patch invalidates the whole DART cache rather than the single
entry. Until we get single entry invalidating we'll have an obvious
performance issue.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %2A%A9%A6T%08%BC%10YL%D2H%8Ff%40WO%5E%A6uI
Jimi Xenidis [Tue, 26 Sep 2006 16:44:20 +0000 (12:44 -0400)]
[XEN][POWERPC] Allocated wrong order for dummy page
This patch makes sure that the dummy page is only 4k not 8k.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : .0%3E%AC%CE2%E5%FD%3F%7B%16%C9/%F04%B7%11%7E%1D_
Jimi Xenidis [Tue, 26 Sep 2006 16:42:33 +0000 (12:42 -0400)]
[XEN][POWERPC] Backoff the SCOM stuff by default
Sadly the SCOM stuff is proving to be unstable for various versions of
the chip. I'm turning it off by default. Also adding some PVR
decoding logic.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %AF%13%80%A0%88%04%AE%D1Z%04%F3%DD%60%C5%E5%60%11%E6%8D%06
Jimi Xenidis [Mon, 25 Sep 2006 15:19:55 +0000 (11:19 -0400)]
[XEN][POWERPC] Fix compile error in gdbstub.c
With crash_debug=y the compiler can't find a prototype for unimplemented(),
where gdb-arch-read_reg is calling it.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %AC%FB%1A%C2%3F%80%28l%8BS%20R%F5%E4%B7%7F3a%266
Jimi Xenidis [Fri, 22 Sep 2006 15:51:56 +0000 (11:51 -0400)]
[XEN][POWERPC] Be a little smarter with unimplemented()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %0E%83%BAb%A3%A5%C3%B2%2A%E9%9E%BBkk%7F%E6%04%DD%B4G
Hollis Blanchard [Thu, 30 Nov 2006 21:26:55 +0000 (15:26 -0600)]
[XEN][POWERPC] Clean up debug/traceback/trapping logic
This patch tries to sort out all the debugging mechanisms we have
available to us.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 22 Sep 2006 15:02:47 +0000 (11:02 -0400)]
[XEN][POWERPC] Machine check now inspects the SCOM for more information
Also fixes suggested by <segher@kernel.crashing.org>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %E0%BBbh8%05%BC%0D%CDl%A5%19%8B%14%0FY%10%DB%D3X
Jimi Xenidis [Thu, 21 Sep 2006 17:48:24 +0000 (13:48 -0400)]
[POWERPC][XEN] attempt to adjust thread priority is futile and meaningless
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %F4%8C%D4%9FN%E2%1F%C4N%F2%FD%85U%3C%8C%20%08%DA%84%89
Jimi Xenidis [Thu, 21 Sep 2006 11:37:00 +0000 (07:37 -0400)]
[XEN][POWERPC] Fully inline udelay()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %BC%B5%99%8A%0A%BCP%A3l%B8%00%B8C%CE49R%CC%CBf
Jimi Xenidis [Thu, 21 Sep 2006 11:36:17 +0000 (07:36 -0400)]
[XEN][POWERPC] SCOM access is fully known and working
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %E2%2C%BD.%A1%E4r%0BxS%E4%B0ZJ%9C%DD%A2%BF%F3H
Jimi Xenidis [Mon, 18 Sep 2006 21:47:10 +0000 (17:47 -0400)]
[POWERPC][XEN] /chosen/cpu is an instance not a package
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %83%94%E6gH%D0%3B%DE%237%DF%3A%D2%BA%8B%E5%9C%F3%92%B5
Hollis Blanchard [Wed, 29 Nov 2006 20:16:36 +0000 (14:16 -0600)]
Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 14:27:13 +0000 (14:27 +0000)]
[XEN] Add emulator tracing diagnostic on error path.
Simplify shadow-mode entry protocol to emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Tue, 28 Nov 2006 14:24:20 +0000 (14:24 +0000)]
Bump xend_config_format to 3, to indicate that the lifecycle patches are
available.
Better version mechanisms will be forthcoming!
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:53:12 +0000 (13:53 +0000)]
[HVMLOADER] acpi: Implement an acpi_rsdp_get() function that searches
for the RSDP in memory (up to the BIOS) rather than calculating its
start address. Recent changes seem to have moved the RSDP to another
location in memory so that I received 'BAD RSPD signature' messages.
I have also fixed some other possible issues related to return codes
and alignment of ACPI entries.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:50:32 +0000 (13:50 +0000)]
[BLKTAP] Use lartge enough types to express parameters of large block devices.
While the kernel side of blktap drivers is using 64-bit sector numbers
correctly when reporting disk sizing, the userspace parts where this
dat is actually generated is truncating at 32-bit. There are 3 variables
related to disk sizing which are used in the kernel/userspace code
'size', 'sector size' & 'info'. In kernel space these are treated as being
unsigned long long, unsigned long, and unsigned int, respectively. In
the blktap userspace code this were all varyingly long, unsigned long.
This mismatch caused 32-bit wraparound on large disks. The attached
patch updates the blktap userspace to use the same data types as
kernel space for all these params, thus both fixing the 32-bit bug &
giving the code consistency.
This patch has been tested both by comparing /proc/partitions in the
guest, with the image size seen in the host, and by using Stephen
Tweedie's 'verify-data' tool on a variety of multi-TB sized disks.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:48:47 +0000 (13:48 +0000)]
[HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot.
Basically, this patch reverts part of c/s 12264.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:46:10 +0000 (13:46 +0000)]
[QEMU] pci: Unaligned config read/write overflow
The default config read/write handlers allows a 4-byte read/write at
address 255. This can clobber the field after the config area. This
happens to be the PCIBus pointer in the PCIDevice structure.
This patch stops this from reducing the read/write to the (largest
multiple of 2) number of bytes within the config area.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:43:25 +0000 (13:43 +0000)]
[XENOPROFILE] fix shared_xenoprof_page_with_guest() and cleanup.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Ewan Mellor [Tue, 28 Nov 2006 13:34:15 +0000 (13:34 +0000)]
Added xm list --state option, to select VMs with a particular state. Make
this handled by a new message (xend.domains_with_state) and make xend.domains
equivalent to xend.domains_with_state(running). This restores the Xen 3.0.3
semantics of xend.domains.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 28 Nov 2006 13:32:07 +0000 (13:32 +0000)]
Do not display -1 as the domid when a VM is not running -- simply leave the
column blank.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Tue, 28 Nov 2006 12:24:24 +0000 (12:24 +0000)]
[XEN] Clear just the _PAGE_RW bit when shooting writeable mappings
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:47:28 +0000 (11:47 +0000)]
merge
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:46:39 +0000 (11:46 +0000)]
[HVM] Add/fix access rights and limit checks to INS/OUTS emulation
Since these instructions are documented to take their intercepts
before these checks are being done in hardware, they must be carried
out in software.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:45:54 +0000 (11:45 +0000)]
[HVM] Non-flat protected mode HVM support.
This is now the full set of changes needed to eliminate the assumption
that segments in protected mode always have zero base addresses. At
once, this further simplifies the instruction length determination
code used for MMIO of HVM domains.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Ewan Mellor [Tue, 28 Nov 2006 11:43:43 +0000 (11:43 +0000)]
Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:43:39 +0000 (11:43 +0000)]
[HVM] Fix MSR access code.
- rdmsr/wrmsr always use ECX (not RCX) as register index.
- SVM still had the function names explicitly in the HVM_DBG_LOG() output
- the guest should (at the very minimum) see GP fault for MSRs
accesses to which even fault in Xen itself
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Ewan Mellor [Tue, 28 Nov 2006 11:35:10 +0000 (11:35 +0000)]
Don't bail if the VM renaming at the end of saving doesn't succeed -- we
expect a failure if this is a localhost migration.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 28 Nov 2006 11:31:46 +0000 (11:31 +0000)]
Added configuration for authentication through Xen-API -- it can now be set
to use PAM, or to be turned off entirely, on a listener by listener basis.
Listen on a different unix domain socket for the Xen-API server, so that it
can co-exist with the others.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 28 Nov 2006 10:24:52 +0000 (10:24 +0000)]
Fix log message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 28 Nov 2006 10:23:34 +0000 (10:23 +0000)]
Implement an "allowed hosts" mechanism for the XML-RPC server layer, using
code from the relocation protocol handling and some plumbing. Add a new
configuration entry for the Xen-API server, including use of this mechanism.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Tue, 28 Nov 2006 09:51:05 +0000 (09:51 +0000)]
[XEN] Remove valid_mfn().
Since cset 12568 removed VALID_MFN(), valid_mfn() is just confusing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 28 Nov 2006 09:39:32 +0000 (09:39 +0000)]
[XEN] Don't unpin old shadow top levels until the new ones are pinned.
This will stop a possible case where we unshadow an entire process
on a TLB-flush CR3 write.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Mon, 27 Nov 2006 20:04:20 +0000 (20:04 +0000)]
Cope with non-integer domids (i.e. None) in the error message surrounding
save/restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Mon, 27 Nov 2006 17:49:41 +0000 (17:49 +0000)]
[HVM] Re-introduce the 'apic' configuration option, default to 1.
Also simplify the HVM builder interface by doing more work in
the python wrapper, and fix mapping of shared_info page after the
change to map foreign pages by GMFN rather than MFN.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 27 Nov 2006 17:48:24 +0000 (17:48 +0000)]
[XEN] Remove VALID_MFN(); replace uses with mfn_valid().
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Mon, 27 Nov 2006 14:52:41 +0000 (14:52 +0000)]
When suspending and resuming, look up the managed path using the domain's UUID.
Add a resumed domain to the self.domains list after XendCheckpoint.restore,
to ensure that it does not get recreated immediately afterwards.
Perform domain_resume under the domains_lock, given that the domain needs to
be added.
These fixes together should fix xm suspend and xm resume.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 27 Nov 2006 14:48:38 +0000 (14:48 +0000)]
Don't send the old state string for halted domains -- it doesn't make any
sense, and we don't want to see state flags linger.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 27 Nov 2006 14:47:23 +0000 (14:47 +0000)]
Reset the domain name after the save completes. This is necessary, now that
we have persistent domains.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 27 Nov 2006 14:45:44 +0000 (14:45 +0000)]
Add xm resume to the commands list.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Mon, 27 Nov 2006 14:20:44 +0000 (14:20 +0000)]
[XEN] Cleanups to phys/mach address handling.
1. Balloon driver does not need to set M2P entry.
This is done by the populate_physmap hypercall.
2. Xen now translates foreign mappings from GMFN->MFN.
Tools are simplified because of this.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Mon, 27 Nov 2006 13:50:02 +0000 (13:50 +0000)]
[LINUX] Import kasprintf patch from upstream.
kasprintf has been merged upstream with a slightly different protoype
to the one in Xen. Import this patch and fixup the Xen tree to fit.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Mon, 27 Nov 2006 13:50:02 +0000 (13:50 +0000)]
[LINUX] Update to Linux 2.6.16.32
Updated patches/linux-2.6.16.32/net-gso-0-base.patch due to changes in
net/core/dev.c and net/core/skbuff.c and update the following in the sparse
tree:
include/linux/skbuff.h
mm/memory.c
mm/mmap.c
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Mon, 27 Nov 2006 13:50:02 +0000 (13:50 +0000)]
[LINUX] Update to Linux 2.6.16.31
Updated linux-2.6-xen-sparse/arch/x86_64/kernel/acpi/Makefile
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>